package com.google.code.tutorials.java.spring.data.jpa.repository.user;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.google.code.tutorials.java.spring.data.jpa.domain.User;

public interface UserRepository extends CrudRepository<User, Long> {
	@Query("select u from User u where u.firstname = ?1")
	List<User> findByFirstname(String firstname);
}